#pragma once

#include "TextStreamInterface.h"
#include <vector>

class TextStreamFake;
typedef Factory < TextStreamInterface >::CastedPtr < TextStreamFake > TextStreamFakePtr;

class TextStreamFake
: public TextStreamInterface
{
public:
	static TextStreamFakePtr Spawn ();
	static void CheckInnocence ();
private:
	virtual char ReadChar ();
	virtual void WriteString ( std::string str );
public:
	std::string readChars;
	std::string written;
private:
	static Factory < TextStreamInterface > factory;
};
